<template>
	<view>
		<view class="main">
			<view class="list_item" v-for="(item, index) in dataList" :key="index">
				<view class="img"><image :src="item.headimgurl" mode="aspectFill"></image></view>
				<view class="cont_box">
					<view class="name">{{ item.nickname }}</view>
					<view class="time">参与时间：{{ item.date_creation | formatTime() }}</view>
				</view>
			</view>
		</view>
		<sww-load-more :params="dataListParams"></sww-load-more>
	</view>
</template>

<script>
import { pagingMixin } from '@/mixins/pagingMixin.js';
import { formatDate } from '@/utils/moment/index.js';
export default {
	mixins: [pagingMixin],
	components: {},
	data() {
		return {};
	},
	filters: {
		formatTime(val) {
			return formatDate(val,'YYYY-MM-DD HH:mm:ss');
		}
	},
	onLoad(options) {
		if (options.id) {
			this.activityId = Number(options.id);
			this._init_data('GetCustomFormValList', { pk_id: this.activityId });
		}
	},
	onReachBottom() {
		this._load_data();
	},
};
</script>

<style scoped lang="scss">
.main {
	padding: 0 30rpx;
}
.list_item {
	border-bottom: 1px solid #f5f5f5;
	padding: 20rpx 0;
	display: flex;
	align-items: center;
	.img {
		width: 80rpx;
		height: 80rpx;
		border-radius: 50%;
		margin-right: 30rpx;
		overflow: hidden;
	}
	.cont_box {
		flex: 1;
		overflow: hidden;
		.name {
			white-space: normal;
			text-overflow: ellipsis;
			overflow: hidden;
		}
		.time {
			margin-top: 10rpx;
			color: #999;
			font-size: 26rpx;
		}
	}
}
</style>
